package LeetCode;

public class LC_231_PowerofTwo {

    public static void main(String[] args) {

    }

    static class Solution {
        public boolean isPowerOfTwo(int n) {
            return n > 0 && ((n & (n - 1)) == 0);
        }
    }

}